<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>伸缩容器_复合属性</title>
  <style>
    body{
      display: flex;
    }
    .outer{
      width: 600px;
      height: 600px;
      background-color: gray;
      display:flex;
      flex-direction: row;
      flex-wrap: wrap-reverse;
      /*复合属性:指定主轴方向和换行属性*/
      flex-flow: row-reverse wrap;
    }
    .inner{
      width: 200px;
      height: 200px;
      border: 1px solid black;
      box-sizing: border-box;
      background-color: skyblue;
    }
  </style>
</head>
<body>
<div class="outer">
  <div class="inner">1</div>
  <div class="inner">2</div>
  <div class="inner">3</div>
  <div class="inner">4</div>
  <div class="inner">5</div>
  <div class="inner">6</div>
</div>
</body>
</html>